package cn.hinglo.permission.bean;

import com.jfinal.plugin.activerecord.IBean;
import com.jfinal.plugin.activerecord.Model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
 * @author HingLo
 * @createTime: 2018-11-21 14:52:48
 * @description: BaseServices 模型
 */
@Entity
@Table(name = "services")
public abstract class BaseServices<M extends BaseServices<M>> extends Model<M> implements IBean {

    @Column(name = "id")
    public java.lang.Integer getId() {
        return getInt("id");
    }

    public M setId(java.lang.Integer id) {
        set("id", id);
        return (M) this;
    }

    @Column(name = "name")
    public java.lang.String getName() {
        return getStr("name");
    }

    public M setName(java.lang.String name) {
        set("name", name);
        return (M) this;
    }

    @Column(name = "url")
    public java.lang.String getUrl() {
        return getStr("url");
    }

    public M setUrl(java.lang.String url) {
        set("url", url);
        return (M) this;
    }

    @Column(name = "date")
    public java.util.Date getDate() {
        return get("date");
    }

    public M setDate(java.util.Date date) {
        set("date", date);
        return (M) this;
    }

    @Column(name = "content")
    public java.lang.String getContent() {
        return getStr("content");
    }

    public M setContent(java.lang.String content) {
        set("content", content);
        return (M) this;
    }

    @Column(name = "status")
    public java.lang.Integer getStatus() {
        return getInt("status");
    }

    public M setStatus(java.lang.Integer status) {
        set("status", status);
        return (M) this;
    }

}
